﻿using CRM.Infrastructure.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace CRM.Infrastructure.Dto
{
    public class TodoDto : Todo
    {

        ///<summary>
        ///线索用户名称
        ///</summary>
        public string UserName { get; set; }

        ///<summary>
        ///1男 2女 0未知
        ///</summary>
        public int Sex { get; set; }

        ///<summary>
        ///分配时间
        ///</summary>
        public DateTime UserCreateDate { get; set; }

        ///<summary>
		///品牌
		///</summary>
        public string Brand { get; set; }

        ///<summary>
        ///车型
        ///</summary>
        public string Model { get; set; }

        ///<summary>
        ///车款名称
        ///</summary>
        public string CarName { get; set; }

        ///<summary>
        ///保险终止日期
        ///</summary>
        public DateTime EndDate { get; set; }

        /// <summary>
        /// 客户名称
        /// </summary>
        public string HisUserName { get; set; }

        /// <summary>
        /// 电话号码
        /// </summary>
        public string Mobile { set; get; }

        /// <summary>
        /// 车牌号码
        /// </summary>
        public string PlateNo { set; get; }

        /// <summary>
        /// 线索类型
        /// </summary>
        public int ClueType { set; get; }

        /// <summary>
        /// 线索类型名称
        /// </summary>
        public string ClueTypeName
        {
            get
            {
                switch (ClueType)
                {
                    case 1:
                        return "出险客户";
                    case 2:
                        return "续保客户";
                    default:
                        return "未知";
                }
            }
        }
    }
}